<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<!--    <script>-->
<!--        alert('hello');-->
<!--    </script>-->
    <script src="twq01.js"></script>
<h1>标题1</h1>
    <p id="p1">p1</p>
    <p class="p2">p2</p>
<script>
    var h1 = document.getElementsByTagName('h1')

</script>

</head>
<body>

</body>
</html>